﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.SimpleFlow
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.SimpleFlow;

    public class map_ApprovalNode : EntityMapping<ApprovalNode>
    {
        public map_ApprovalNode()
        {
            Property(x => x.Describe, map =>
            {
                map.Length(100000);
            });

            Property(x => x.Title, map =>
            {
                map.Length(200);
            });

            Property(x => x.IsEnd);

            //所属审批节点
            ManyToOne(x => x.Record, map =>
            {
                map.Column("RecordID");
            });

            //操作用户
            ManyToOne(x => x.Operator, map =>
            {
                map.Column("UserID");
            });

            
        }
    }
}
